package com.itheima.dao;
import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;
import java.util.List;
import java.util.Set;
public interface PermissionDao {
    public Set<Permission> findByRoleId(Integer roleId);
    //权限管理_角色添加功能_权限列表数据展示
    public Set<Permission> findAll();
    //权限管理_分页查询
    public Page<Permission> selectByCondition(String queryString);
    public Permission findById(Integer id);
    //权限编辑
    public void edit(Permission permission);
    void deleteRoleIdByPermission(Integer id);
    void delete(Integer id);
    void add(Permission permission);
    Permission findPermissionByKeyword(String keyword);
}
